BX.ready(function(){BX.namespace("BX.rest.integration");if(BX.rest.integration.grid){return}var t=function(){};t.prototype={init:function(t){this.gridId=t.gridId;if(window!==window.top&&BX.type.isFunction(top.BX.ajax.UpdatePageData)){top.BX.ajax.UpdatePageData=function(){}}},reloadData:function(){if(restIntegrationGridComponent.gridId.length>0){var t={apply_filter:"Y"};var e=BX.Main.gridManager.getById(restIntegrationGridComponent.gridId);if(e.hasOwnProperty("instance")){e.instance.reloadTable("POST",t)}}},delete:function(t,e){BX.ajax.runComponentAction("bitrix:rest.integration.grid","delete",{mode:"class",signedParameters:restIntegrationGridComponent.signetParameters,data:{id:t},analyticsLabel:{type:"integrationDelete",integrationCode:e}}).then(function(t){if(!!t.data&&!!t.data.result){if(t.data.result==="success"){BX.rest.integration.grid.reloadData()}else if(!!t.data.errors){var e;for(e in t.data.errors){BX.UI.Notification.Center.notify({content:t.data.errors[e]})}}}})}};BX.rest.integration.grid=new t});
//# sourceMappingURL=script.map.js